package com.hz.ruoyiequipment.warning.service;

import com.hz.ruoyiequipment.warning.domain.vo.*;
import com.hz.ruoyiequipment.warning.service.impl.ThresholdRedisService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @ClassName AgrAlertLinkService
 * @Description
 * @Author 陈萝瑶
 * @Date 2025/3/10 12:07
 */
public interface AgrAlertLinkService{
    //操作redis阈值信息


    public List<AgrAlertLinkVo> getByBatchName(Long batchId);

    public List<AgrAlertLinkVo> getSourceEquipment(Long breedId, Long batchId);

    public List<AgrAlertLinkVo> getTargetEquipment(Long breedId, Long batchId);

    public List<AgrAlertLinkResultVo> getAllByBreedId(Long breedId);

    public List<AgrAlertLinkVo> getBatchByPlotsId(Long plotsId, Integer batchStatus);

    public List<AgrAlertLinkVo> getByBreedId(Long breedId,Long plotsId);

    public List<AgrAlertLinkResultVo> getTriggerByBreedId(Long breedId);

    public int delTrigger(Long fieldId);

    public int insertAgrAlertThresholdField(AgrAlertLinkResultVo agrAlertLinkResultVo);

    public int insertFieldLink(AgrAlertLinkResultVo agrAlertLinkResultVo);

    public int updateAgrAlertEquipLink(AgrAlertLinkResultVo agrAlertLinkResultVo);

    public int updateAgrAlertField(Long breedId,Long batchId);
    /**
     * 根据检测设备id查询所有联动规则
     * @param sourceId
     * @return
     */
    public List<AgrAlertLinkResultVo> getAllBySourceId(Long sourceId);

}
